<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>JSDoc: Class: Dataset</title>

    <script src="scripts/prettify/prettify.js"> </script>
    <script src="scripts/prettify/lang-css.js"> </script>
    <!--[if lt IE 9]>
      <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
    <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
</head>

<body>

<div id="main">

    <h1 class="page-title">Class: Dataset</h1>

    




<section>

<header>
    
        <h2><span class="attribs"><span class="type-signature"></span></span>Dataset<span class="signature">()</span><span class="type-signature"></span></h2>
        
            <div class="class-description">数据集，在单个脚本中一般指代该数据集的一个瓦片数据。</div>
        
    
</header>

<article>
    <div class="container-overview">
    
        

    
    <h2>Constructor</h2>
    

    
    <h4 class="name" id="Dataset"><span class="type-signature"></span>new Dataset<span class="signature">()</span><span class="type-signature"></span></h4>
    

    















<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line270">line 270</a>
    </li></ul></dd>
    

    

    

    
</dl>




















    
    </div>

    

    

    

    

    

    

    

    
        <h3 class="subsection-title">Methods</h3>

        
            

    

    
    <h4 class="name" id="add"><span class="type-signature"></span>add<span class="signature">(datasetB, validMin, validMax, fillData)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    设当前对象为A，计算两个瓦片数据对象逐像素求和 C=A+B，支持多波段，要求波段数必须一致。A和B数据类型可以不一样，开发者需要注意数据溢出的问题，返回结果C数据类型与A保持一致。内部调用c++代码计算，效率高。计算结果返回到新的瓦片数据对象C。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>datasetB</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


            
            </td>

            

            

            <td class="description last">瓦片数据B</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>validMin</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A和B有效区间下限，包含。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>validMax</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A和B有效区间上线，包含。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A或B像素不在有效值区间，写入填充值。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line481">line 481</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    返回结算后的结果。如果失败返回null。
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let datasetC=datasetA.add(datasetB, 0, 10000, -1) ;</code></pre>



        
            

    

    
    <h4 class="name" id="addConst"><span class="type-signature"></span>addConst<span class="signature">(number, fillData)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    瓦片数据逐像素加一个数字常量，数据直接写在当前对象数据中，不返回新结果。支持多波段。开发者需要注意数据溢出的问题，内部调用c++代码计算，效率高。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>number</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">数字常量。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">当前数据填充值，对于填充值跳过，不计算。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line545">line 545</a>
    </li></ul></dd>
    

    

    

    
</dl>



















    <h5>Example</h5>
    
    <pre class="prettyprint"><code>datasetA.addConst(1 , 0) ;</code></pre>



        
            

    

    
    <h4 class="name" id="buildmask"><span class="type-signature"></span>buildmask<span class="signature">(targetValue)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    针对当前瓦片数据构建0，1值组成的单波段Byte型掩膜数据。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>targetValue</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">当前瓦片数据像素值等于该值时输出1，反之输出0.</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line336">line 336</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    掩膜数据。
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let maskds = datasetA.buildmask( 128 );// all pixel of value=128 will be 1, others will be 0.</code></pre>



        
            

    

    
    <h4 class="name" id="buildmask2"><span class="type-signature"></span>buildmask2<span class="signature">(targetValueMin, targetValueMax)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    针对当前瓦片数据在一个最小值和最大值范围内的像素构建0，1值组成的单波段Byte型掩膜数据。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>targetValueMin</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">当前瓦片数据在这个targetValueMin（含），targetValueMax（含）范围内的返回1，反之返回0.</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>targetValueMax</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">当前瓦片数据在这个targetValueMin（含），targetValueMax（含）范围内的返回1，反之返回0.</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line346">line 346</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    掩膜数据。
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let maskds = datasetA.buildmask2( 0.0 , 254.0 );</code></pre>



        
            

    

    
    <h4 class="name" id="burn"><span class="type-signature"></span>burn<span class="signature">(geometry, burnValue)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    将指定值烧录到当前数据集的副本上并返回该副本，烧录的数据在返回数据中，不会写入当前瓦片数据。对于几何体以外的数据保留原始值不做处理。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>geometry</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Geometry.html">Geometry</a></span>


            
            </td>

            

            

            <td class="description last">几何体数据，可以是点、线、面。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>burnValue</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">烧录值。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line386">line 386</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    返回烧录后结果。
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let geom=pe.geomByWkt("POINT(120 30)");let burnedDataset=datasetA.burn( geom, 244 ) ;</code></pre>



        
            

    

    
    <h4 class="name" id="clip"><span class="type-signature"></span>clip<span class="signature">(roiId, fillvalue)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    数据集裁剪。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>roiId</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillvalue</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    
        <dt class="important tag-deprecated">Deprecated:</dt><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd>
    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line278">line 278</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="clip2"><span class="type-signature"></span>clip2<span class="signature">(roiId, fillvalue)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    数据集裁剪。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>roiId</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillvalue</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last"></td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    
        <dt class="important tag-deprecated">Deprecated:</dt><dd class="yes-def tag-deprecated"><ul class="dummy"><li>Yes</li></ul></dd>
    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line286">line 286</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="clip3"><span class="type-signature"></span>clip3<span class="signature">(roiId, fillvalue)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    数据集裁剪。支持wkt，wkb，geojson三种格式。裁剪区外部填充值，裁剪区内部保留原始值。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>roiId</code></td>
            

            <td class="type">
            
                
<span class="param-type">String</span>


            
            </td>

            

            

            <td class="description last">与后台约定感兴趣区标识，调用该函数时pe会通过后台请求对应的感兴趣区数据，并构建裁剪几何。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillvalue</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">裁剪区外部填充值。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line294">line 294</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    返回裁剪后数据集，如果该瓦片数据全部在感兴趣区外部返回全部填充值的瓦片（并不会返回null）.
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    





        
            

    

    
    <h4 class="name" id="clipByGeometry"><span class="type-signature"></span>clipByGeometry<span class="signature">(geometry, fillValue)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    使用几何体对数据集进行裁剪，并返回裁剪后的结果。裁剪区外边使用填充值填充。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>geometry</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Geometry.html">Geometry</a></span>


            
            </td>

            

            

            <td class="description last">几何体。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillValue</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">填充值。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line398">line 398</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    返回裁剪结果，对于瓦片数据完全在几何体之外的，返回全填充值瓦片。
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let point = pe.geomByWkt("POINT(120 30)");let geom = point.buffer(10);//in degree.let clipedDs = datasetA.clipByGeometry(geom, 0) ;</code></pre>



        
            

    

    
    <h4 class="name" id="clone"><span class="type-signature"></span>clone<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    深拷贝一个瓦片数据对象并返回。
</div>













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line528">line 528</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    返回深拷贝的对象。
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let datasetB=datasetA.clone() ;</code></pre>



        
            

    

    
    <h4 class="name" id="convertToDataType"><span class="type-signature"></span>convertToDataType<span class="signature">(datatype)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    转换瓦片数据数据类型
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>datatype</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">目标数据类型{DataTypeByte}等</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line303">line 303</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    返回目标数据类型的瓦片数据，如果失败返回null
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>var newds=dataset.convertToDataType(pe.DataTypeFloat32);</code></pre>



        
            

    

    
    <h4 class="name" id="datasetA"><span class="type-signature"></span>datasetA<span class="signature">(bandindex)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    从多波段瓦片数据中提取单个波段数据。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>bandindex</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">提取波段索引值，从0开始计。该值必须小于瓦片的波段数。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line327">line 327</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let redbandDs = rgbDataset.extract(0) ;</code></pre>



        
            

    

    
    <h4 class="name" id="div"><span class="type-signature"></span>div<span class="signature">(datasetB, validMin, validMax, fillData)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    设当前对象为A，计算两个瓦片数据  C=A/B，支持多波段，要求波段数必须一致。A和B数据类型可以不一样，开发者需要注意数据溢出的问题，返回结果C数据类型与A保持一致。内部调用c++代码计算，效率高。计算结果返回到新的瓦片数据对象C。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>datasetB</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


            
            </td>

            

            

            <td class="description last">瓦片数据B</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>validMin</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A和B有效区间下限，包含。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>validMax</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A和B有效区间上线，包含。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A或B像素不在有效值区间，写入填充值。B值为0的直接写入填充值。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line520">line 520</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    返回结算后的结果。如果失败返回null。
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let datasetC=datasetA.div(datasetB, 0, 10000, -1) ;</code></pre>



        
            

    

    
    <h4 class="name" id="divConst"><span class="type-signature"></span>divConst<span class="signature">(number, fillData)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    瓦片数据逐像素 / 一个数字常量，数据直接写在当前对象数据中，不返回新结果。支持多波段。开发者需要注意数据溢出的问题，内部调用c++代码计算，效率高。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>number</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">数字常量。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">当前数据填充值，对于填充值跳过，不计算。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line577">line 577</a>
    </li></ul></dd>
    

    

    

    
</dl>



















    <h5>Example</h5>
    
    <pre class="prettyprint"><code>datasetA.divConst(1 , 0) ;</code></pre>



        
            

    

    
    <h4 class="name" id="forEachPixel"><span class="type-signature"></span>forEachPixel<span class="signature">(callbackFunc)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    对当前瓦片数据副本进行逐像素计算，返回计算结果。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>callbackFunc</code></td>
            

            <td class="type">
            
                
<span class="param-type">function</span>


            
            </td>

            

            

            <td class="description last">逐像素计算函数，函数样例参考示例，输入参数包括一个当前像素由全部波段数据组成的数组和像素位置。输出数据的波段数由计算函数的第一个返回值决定。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line467">line 467</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    返回结算后的结果。如果失败返回null。
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>function calculateNDVI( valArr, index ) {	 let ndvi=(valArr[1]-valArr[0])/(valArr[1]+valArr[0]);  return ndvi; // return [ndvi] ; this is also OK.}let newds=dataset.forEachPixel( calculateNDVI ) ;</code></pre>



        
            

    

    
    <h4 class="name" id="map"><span class="type-signature"></span>map<span class="signature">(oldValue, newValue)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    对当前瓦片数据指定值进行重映射，其他值不变。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>oldValue</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">原始像素值。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>newValue</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">映射为新的像素值。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line365">line 365</a>
    </li></ul></dd>
    

    

    

    
</dl>



















    <h5>Example</h5>
    
    <pre class="prettyprint"><code>datasetSelf.map( 128 , 255 );</code></pre>



        
            

    

    
    <h4 class="name" id="map2"><span class="type-signature"></span>map2<span class="signature">(oldValueMin, oldValueMax, newValue)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    对当前瓦片数据指定范围值进行重映射，其他值不变。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>oldValueMin</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">指定范围最小值（含）。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>oldValueMax</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">指定范围最大值（含）。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>newValue</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">映射为新值。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line375">line 375</a>
    </li></ul></dd>
    

    

    

    
</dl>



















    <h5>Example</h5>
    
    <pre class="prettyprint"><code>datasetSelf.map2( 0, 128, 255 ) ;</code></pre>



        
            

    

    
    <h4 class="name" id="mask"><span class="type-signature"></span>mask<span class="signature">(maskDataset, fillValue)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    对当前瓦片数据进行掩膜操作，结果保留在当前对象中，不返回新数据。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>maskDataset</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


            
            </td>

            

            

            <td class="description last">掩膜瓦片数据，必须是Byte型单波段数据，当前瓦片数据对应掩膜像素为1的保留，反之使用填充值填充。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillValue</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">填充值。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line356">line 356</a>
    </li></ul></dd>
    

    

    

    
</dl>



















    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let maskds=dataset1.buildmask2(0.0,254.0,1) ;datasetSelf.mask( maskds , 255 ) ;</code></pre>



        
            

    

    
    <h4 class="name" id="mul"><span class="type-signature"></span>mul<span class="signature">(datasetB, validMin, validMax, fillData)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    设当前对象为A，计算两个瓦片数据 C=A*B，支持多波段，要求波段数必须一致。A和B数据类型可以不一样，开发者需要注意数据溢出的问题，返回结果C数据类型与A保持一致。内部调用c++代码计算，效率高。计算结果返回到新的瓦片数据对象C。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>datasetB</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


            
            </td>

            

            

            <td class="description last">瓦片数据B</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>validMin</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A和B有效区间下限，包含。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>validMax</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A和B有效区间上线，包含。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A或B像素不在有效值区间，写入填充值。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line507">line 507</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    返回结算后的结果。如果失败返回null。
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let datasetC=datasetA.mul(datasetB, 0, 10000, -1) ;</code></pre>



        
            

    

    
    <h4 class="name" id="mulConst"><span class="type-signature"></span>mulConst<span class="signature">(number, fillData)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    瓦片数据逐像素 * 一个数字常量，数据直接写在当前对象数据中，不返回新结果。支持多波段。开发者需要注意数据溢出的问题，内部调用c++代码计算，效率高。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>number</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">数字常量。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">当前数据填充值，对于填充值跳过，不计算。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line566">line 566</a>
    </li></ul></dd>
    

    

    

    
</dl>



















    <h5>Example</h5>
    
    <pre class="prettyprint"><code>datasetA.mulConst(1 , 0) ;</code></pre>



        
            

    

    
    <h4 class="name" id="sub"><span class="type-signature"></span>sub<span class="signature">(datasetB, validMin, validMax, fillData)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    设当前对象为A，计算两个瓦片数据 C=A-B，支持多波段，要求波段数必须一致。A和B数据类型可以不一样，开发者需要注意数据溢出的问题，返回结果C数据类型与A保持一致。内部调用c++代码计算，效率高。计算结果返回到新的瓦片数据对象C。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>datasetB</code></td>
            

            <td class="type">
            
                
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


            
            </td>

            

            

            <td class="description last">瓦片数据B</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>validMin</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A和B有效区间下限，包含。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>validMax</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A和B有效区间上线，包含。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">A或B像素不在有效值区间，写入填充值。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line494">line 494</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    返回结算后的结果。如果失败返回null。
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let datasetC=datasetA.sub(datasetB, 0, 10000, -1) ;</code></pre>



        
            

    

    
    <h4 class="name" id="subConst"><span class="type-signature"></span>subConst<span class="signature">(number, fillData)</span><span class="type-signature"></span></h4>
    

    



<div class="description">
    瓦片数据逐像素 - 一个数字常量，数据直接写在当前对象数据中，不返回新结果。支持多波段。开发者需要注意数据溢出的问题，内部调用c++代码计算，效率高。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>number</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">数字常量。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>fillData</code></td>
            

            <td class="type">
            
                
<span class="param-type">Number</span>


            
            </td>

            

            

            <td class="description last">当前数据填充值，对于填充值跳过，不计算。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line555">line 555</a>
    </li></ul></dd>
    

    

    

    
</dl>



















    <h5>Example</h5>
    
    <pre class="prettyprint"><code>datasetA.subConst(1 , 0) ;</code></pre>



        
            

    

    
    <h4 class="name" id="subtract"><span class="type-signature"></span>subtract<span class="signature">(datasetB, validmin, validmax, filldata, outDataType)</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    当前瓦片数据减去瓦片数据B，返回差值后的瓦片数据，要求两个数据集波段相同。
</div>









    <h5>Parameters:</h5>
    

<table class="params">
    <thead>
    <tr>
        
        <th>Name</th>
        

        <th>Type</th>

        

        

        <th class="last">Description</th>
    </tr>
    </thead>

    <tbody>
    

        <tr>
            
                <td class="name"><code>datasetB</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">数据集B</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>validmin</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">计算有效区间最小值包含。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>validmax</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">计算有效区间最大值包含。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>filldata</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">有效区间外填充值。</td>
        </tr>

    

        <tr>
            
                <td class="name"><code>outDataType</code></td>
            

            <td class="type">
            
                
<span class="param-type">*</span>


            
            </td>

            

            

            <td class="description last">输出数据类型，可选，默认使用当前数据集的类型。</td>
        </tr>

    
    </tbody>
</table>






<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line318">line 318</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        
<div class="param-desc">
    返回差值结果瓦片数据。
</div>



<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let dsResult = datasetA.subtract( datasetB, 0, 254, 255  );</code></pre>



        
            

    

    
    <h4 class="name" id="toByte"><span class="type-signature"></span>toByte<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    将当前瓦片数据的副本转换为Byte型返回。
</div>













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line406">line 406</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let ds=dataset.toByte();</code></pre>



        
            

    

    
    <h4 class="name" id="toFloat32"><span class="type-signature"></span>toFloat32<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    将当前瓦片数据的副本转换为 float32 型返回。
</div>













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line446">line 446</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let ds=dataset.toFloat32();</code></pre>



        
            

    

    
    <h4 class="name" id="toFloat64"><span class="type-signature"></span>toFloat64<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    将当前瓦片数据的副本转换为 float64 型返回。
</div>













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line454">line 454</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let ds=dataset.toFloat64();</code></pre>



        
            

    

    
    <h4 class="name" id="toInt16"><span class="type-signature"></span>toInt16<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    将当前瓦片数据的副本转换为 int16型返回。
</div>













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line422">line 422</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let ds=dataset.toInt16();</code></pre>



        
            

    

    
    <h4 class="name" id="toInt32"><span class="type-signature"></span>toInt32<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    将当前瓦片数据的副本转换为 int32 型返回。
</div>













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line438">line 438</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let ds=dataset.toInt32();</code></pre>



        
            

    

    
    <h4 class="name" id="toUint16"><span class="type-signature"></span>toUint16<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    将当前瓦片数据的副本转换为unsigned int16型返回。
</div>













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line414">line 414</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let ds=dataset.toUint16();</code></pre>



        
            

    

    
    <h4 class="name" id="toUint32"><span class="type-signature"></span>toUint32<span class="signature">()</span><span class="type-signature"> &rarr; {<a href="Dataset.html">Dataset</a>}</span></h4>
    

    



<div class="description">
    将当前瓦片数据的副本转换为 unsigned int32 型返回。
</div>













<dl class="details">

    

    

    

    

    

    

    

    

    

    

    

    

    
    <dt class="tag-source">Source:</dt>
    <dd class="tag-source"><ul class="dummy"><li>
        <a href="v8api2.js.html">v8api2.js</a>, <a href="v8api2.js.html#line430">line 430</a>
    </li></ul></dd>
    

    

    

    
</dl>















<h5>Returns:</h5>

        


<dl>
    <dt>
        Type
    </dt>
    <dd>
        
<span class="param-type"><a href="Dataset.html">Dataset</a></span>


    </dd>
</dl>

    




    <h5>Example</h5>
    
    <pre class="prettyprint"><code>let ds=dataset.toUint32();</code></pre>



        
    

    

    
</article>

</section>




</div>

<nav>
    <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Dataset.html">Dataset</a></li><li><a href="DateTimeCollection.html">DateTimeCollection</a></li><li><a href="Geometry.html">Geometry</a></li><li><a href="PixelEngine.html">PixelEngine</a></li></ul><h3>Global</h3><ul><li><a href="global.html#pe">pe</a></li></ul>
</nav>

<br class="clear">

<footer>
    Documentation generated by <a href="https://github.com/jsdoc/jsdoc">JSDoc 4.0.2</a> on Thu May 23 2024 09:47:55 GMT+0800 (中国标准时间)
</footer>

<script> prettyPrint(); </script>
<script src="scripts/linenumber.js"> </script>
</body>
</html>